﻿<Window x:Class="SchemesServer.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="智能电能表编程方案服务" Height="310" Width="535" WindowStartupLocation="CenterScreen" Icon="Image\icon.ico">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <GroupBox Margin="5" Grid.Row="0" Grid.Column="0" Header="服务控制" Width="140">
            <StackPanel>
                <Button Name="Btn_Start" Content="启动服务" Width="100" Height="24" Margin="2,10,2,5"/>
                <Button Name="Btn_Stop" Content="关闭服务" Width="100" Height="24" Margin="2,5,2,5"/>
                <Button Name="Btn_Clear" Content="清除日志" Width="100" Height="24" Margin="2,5,2,5"/>
            </StackPanel>
        </GroupBox>
        <GroupBox Margin="5" Grid.Row="0" Grid.Column="1" Header="日志记录">
            <RichTextBox Name="Txt_Log" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Auto"/>
        </GroupBox>
        <StatusBar Name="State_Buttom" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Height="24">
            <DockPanel LastChildFill="True" Width="{Binding ElementName= State_Buttom,Path=ActualWidth}">
                <TextBlock Margin="5,0,10,0" Name="Txt_Sn" DockPanel.Dock="Right"/>
                <TextBlock Text="服务器序列号：" DockPanel.Dock="Right"/>
                <TextBlock Text="Copyright ©  2012 Winahriman's Studio." Background="Transparent" DockPanel.Dock="Left"  Margin="5,0,0,0"/>
            </DockPanel>
        </StatusBar>
    </Grid>
</Window>
